package com.qyl.honghengshop.service.impl;

import java.util.List;

import com.qyl.honghengshop.dao.TimeDao;
import com.qyl.honghengshop.dao.impl.TimeDaoImpl;
import com.qyl.honghengshop.dto.TimeLimit;
import com.qyl.honghengshop.service.TimeService;
import com.qyl.honghengshop.utils.PageBean;

public class TimeServiceImpl implements TimeService {

	private TimeDao timeDao = new TimeDaoImpl();
	
	@Override
	public int getRecordCount(TimeLimit time) {

		
		return timeDao.getRecordCount(time);
	}

	@Override
	public void timeList(PageBean pageBean, TimeLimit time) {

		timeDao.timeList(pageBean,time);
		
	}

	@Override
	public int timeAdd(TimeLimit time) {

		return timeDao.timeAdd(time);
	}

	@Override
	public int delTime(Integer id) {

		return timeDao.delTime(id);
	}

	@Override
	public TimeLimit getTimeById(Integer id) {
		
		return timeDao.getTimeById(id);
	}

	@Override
	public int timeUpdate(TimeLimit time) {
		
		return timeDao.timeUpdate(time);
	}

	@Override
	public List<TimeLimit> getAllTimeLimit() {

		return timeDao.getAllTimeLimit();
	}

}
